-- GENERATED SPELL FOR [Frostpaw Shaman] --


function spell0_26428(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26428', 3000, 1)
end

function spell1_26428(pUnit, Event) --@Lesser Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(25420,pUnit)
pUnit:RegisterEvent('Sorts_26428', 1500, 1)
end

function Sorts_26428(pUnit, Event)
local choix_sorts_26428 = math.random(0, 1)
if choix_sorts_26428 == 0 then
pUnit:RegisterEvent('spell0_26428', 1, 1)
end
if choix_sorts_26428 == 1 then
pUnit:RegisterEvent('spell1_26428', 1, 1)
end
end

function mob26428_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26428', math.random(1500, 3000), 1)
end

function mob26428_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26428_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26428_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26428, 1, 'mob26428_Action')
RegisterUnitEvent(26428, 2, 'mob26428_Leave')
RegisterUnitEvent(26428, 3, 'mob26428_Kill')
RegisterUnitEvent(26428, 4, 'mob26428_Die')
